package com.wxproject.demo.Mapper;

import com.wxproject.demo.Entity.AO.ArticleTypeAO;
import com.wxproject.demo.Entity.AO.ArticleTypeAlterAO;
import com.wxproject.demo.Entity.VO.ArticleTypeIndexVO;
import com.wxproject.demo.Entity.VO.ArticleTypeVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author zqf
 * @date 2021/4/9 20:40
 * @description
 */
@Mapper
@Repository
public interface ArticleTypeMapper {
    Integer addArticleType(ArticleTypeAO articleTypeAO);

    Integer addChatRoom(@Param("chatRoomId") String chatRoomId, @Param("roomName") String typeName, @Param("articleTypeId")String articleTypeId,@Param("date")String date);

    List<ArticleTypeVO> getAllArticleType();

    Integer alertType(ArticleTypeAlterAO articleTypeAlterAO);

    Integer deleteType(@Param("id") String id,@Param("deleteTime")String deleteTime);

    Integer deleteRoom(String id);

    List<ArticleTypeIndexVO> getTypeList();
}
